package com.yj.timecapsule.entity.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class MessageVo {
    private Long id;
    private String content;
    private MessageUserVo senderUserVo;
    private MessageUserVo receiverUserVo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date timestamp; // 可选：存储消息发送的时间戳
}
